package com.example.reschain.demo03.service;

import com.example.reschain.demo02.OrderContext;
import com.example.reschain.demo03.AbstractOrderHandle;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;

@Component
public class ValidOrderHandle extends AbstractOrderHandle implements Ordered {

    @Override
    public OrderContext handle(OrderContext context) {
        System.out.println("检查请求参数，是否合法，并且获取客户的银行账户");
        return context;
    }

    @Override
    public int getOrder() {
        return 2;
    }
}